//
//  UIView+Extension.swift
//  WeiBo
//
//  Created by chenguanglei on 16/11/25.
//  Copyright © 2016年 itheima. All rights reserved.
//

import UIKit

extension UIView{

    var width: CGFloat {
        return self.frame.size.width
    }
    
    var heigth: CGFloat {
        return self.frame.size.height
    }
    
    var x: CGFloat {
        return self.frame.origin.x
    }
    
    var y: CGFloat {
        return self.frame.origin.y
    }


}
